﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Core;
namespace HtmlContent.Controllers
{
    public class ContentController : Controller
    {
        //
        // GET: /Content/

        public ActionResult Show(Guid id)
        {
            Guid PageId = (Guid)TempData["PageId"];
            Models.HtmlContentEntities hc = new Models.HtmlContentEntities();
            Models.HtmlContent c = hc.HtmlContents.First(m => m.ContentId == id);
            ViewBag.CanEdit = UserPermissions.HasPermission("Can Modify Domain");
            ViewBag.PageId = PageId;
            return PartialView(c);
        }
    }
}
